package com.woniuxy.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDate;
import java.util.Date;

@Data
public class CarRepairDto {
    @ExcelIgnore
    private Integer id;

    @ExcelProperty(value="车牌号",index = 0)
    private String carNumber;   //车牌号

    @ExcelProperty(value="车架号",index = 1)
    private String frameNumber; //车架号

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ExcelProperty(value="故障日期",index = 2)
    private LocalDate maintenanceDate;//故障日期

    @ExcelProperty(value="维修等级",index = 3)
    private Integer maintenanceGrade;//维修等级 1,2,3级
    @ExcelProperty(value="维修金额",index = 4)
    private Double maintenanceAmount;//维修金额

    @ExcelProperty(value="运营里程数",index = 5)
    private String operatingMileage;//
    @ExcelProperty(value="状态",index = 6)
    private Integer maintenanceState;//维修状态 0:未维修 1:已维修 2:维修中
    @ExcelProperty(value="故障原因",index = 7)
    private String causeFailure;//故障原因
    @ExcelProperty(value="汽车外键")
    private Integer carId;//car外键
}
